import 'package:pigeon/pigeon.dart';

@ConfigurePigeon(PigeonOptions(
  dartOut: 'lib/src/messages.g.dart',
  dartOptions: DartOptions(),
  ohosOut: 'ohos/src/main/ets/Messages.ets',
  ohosOptions: OhosOptions(),
))
@HostApi()
abstract class FileManagerApi {
  @async
  String writeFile({
    required String fileName,
    String? mimeType,
    required Uint8List bytes,
  });
}
